package com.cloudcode.task;

import com.cloudcode.service.DataEngine;
import jakarta.annotation.Resource;
import jakarta.annotation.Resources;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author yunst
 * @data 2023/10/24 16:50
 */
@EnableScheduling
@Component
@Slf4j
public class DataEngineTask {
    @Resource
    private DataEngine dataEngine;

//    @Scheduled(fixedDelay = 60 * 1000)
    public void execute() {
        dataEngine.start();
    }
}
